package com.dsdl.chatapp.data.source.local;

import android.provider.BaseColumns;

/**
 * Created by zzg on 2016/8/26.
 */
public final class ChatPersistenceContract {
    public ChatPersistenceContract(){}
    public static abstract class ChatEntry implements BaseColumns{
        public static final String TABLE_NAME = "chat";
        public static final String COLUMN_NAME_FROM_USER = "FromUser";
        public static final String COLUMN_NAME_TO_USER = "ToUser";
        public static final String COLUMN_NAME_CREATE_TIME = "CreateTime";
        public static final String COLUMN_NAME_MSG_TYPE = "MsgType";
        public static final String COLUMN_NAME_CONTENT = "Content";
        public static final String COLUMN_NAME_MSG_ID = "MsgId";
        public static final String COLUMN_NAME_SEND_TIME = "SendTime";
    }

    public static abstract class UserEntry implements BaseColumns{
        public static final String TABLE_NAME = "user";
        public static final String COLUMN_NAME_USER_ID = "UserId";
        public static final String COLUMN_NAME_USER_NICK = "UserNick";
        public static final String COLUMN_NAME_USER_REMARK = "UserRemark";
        public static final String COLUMN_NAME_USER_PHONE = "UserPhone";
        public static final String COLUMN_NAME_USER_PHOTO = "UserPhoto";
    }
}
